import requests

cookies = {
    'abRequestId': '5ccbc768-a425-53eb-a318-485f8c396f81',
    'a1': '18dd8b51d3f4xz3jp2s6x9h9ce7wlb7smvuw3wsbk50000104187',
    'webId': 'c0013adf413d636d5bcec1cab6d675b1',
    'gid': 'yYffYD2qiW6qyYffYD2yfhEMqi4CuqVUJMKC7DTjxjSdWE28E1DWMq888y84yYW82y0j4WJ2',
    'xsecappid': 'xhs-pc-web',
    'web_session': '040069b5d95fe17f0699103a19354b44c5708e',
    'webBuild': '4.44.1',
    'websectiga': 'f47eda31ec99545da40c2f731f0630efd2b0959e1dd10d5fedac3dce0bd1e04d',
    'sec_poison_id': '6d913c86-3b2c-453b-a08f-36b164a4ede2',
    'acw_tc': '0ad629bf17323346098232453e2942380cdd4e5b68d2a08f594f46fb9447ce',
    'unread': '{%22ub%22:%22673f60a30000000007032745%22%2C%22ue%22:%22673ef0cf0000000007033070%22%2C%22uc%22:18}',
}

headers = {
    'accept': 'application/json, text/plain, */*',
    'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    'cache-control': 'no-cache',
    # 'cookie': 'abRequestId=5ccbc768-a425-53eb-a318-485f8c396f81; a1=18dd8b51d3f4xz3jp2s6x9h9ce7wlb7smvuw3wsbk50000104187; webId=c0013adf413d636d5bcec1cab6d675b1; gid=yYffYD2qiW6qyYffYD2yfhEMqi4CuqVUJMKC7DTjxjSdWE28E1DWMq888y84yYW82y0j4WJ2; xsecappid=xhs-pc-web; web_session=040069b5d95fe17f0699103a19354b44c5708e; webBuild=4.44.1; websectiga=f47eda31ec99545da40c2f731f0630efd2b0959e1dd10d5fedac3dce0bd1e04d; sec_poison_id=6d913c86-3b2c-453b-a08f-36b164a4ede2; acw_tc=0ad629bf17323346098232453e2942380cdd4e5b68d2a08f594f46fb9447ce; unread={%22ub%22:%22673f60a30000000007032745%22%2C%22ue%22:%22673ef0cf0000000007033070%22%2C%22uc%22:18}',
    'origin': 'https://www.xiaohongshu.com',
    'pragma': 'no-cache',
    'priority': 'u=1, i',
    'referer': 'https://www.xiaohongshu.com/',
    'sc-t': 'aWW8Vy_PwmgN2Q_J7FzUR5HvaR8M7xNeL5yw-9uWIwUboZsdkhgt_cuYNcybRlVhMk3CWVCovHmYWEXLRD-lxfnS6tvvHK7gYAIw5nF-_8o1e0ISHnMD85hQVrPSz7GrWXC-crXMivpqNVd77cLUR5HvaR8Mp8mUY_mDvkX-RvpqNkSOxupUxOdlkq9XYaFMinFwLlRS2nFMLcQvdeL9inFMiDHTY0AesnFwxlRS2nFM_R3F6hCMLU9vIXMQND2Mytgo5ElvI-ddOtniQuQ6cJXJqUVy9rZVxH4W0zlPr4ouKhnW1dmqZ-nbHknoIXYICiDwwZml03cM7DsQbr9rJ5nwHk-W0fQVT0VWJ_CWrW0CjHhxJ0ngCxVOQzI9CbiVWEnFrEwc_5tPwneTRxa3ID1PTcs_4ZswwaZeRMNM_TaIbONail38gWJr7NPxydHfdMejRnbcfO25mjL7tDMfJSo07vmPuVestCzhmuQQ9GxGmJZlldSAQCoU73wdiu6U9QUz0Ddtf7G-KJO9Z9PR4vtVgPulymzHXQUDfDFuhNLDhNOmZRC8gSYX439S9VUB92jHoDvNuAt6HOOZolSHSMZq8CWW9h02mSpEeXScVYZ6ujau9dbhwsNjPgSdiuU6hs2zrf9KuYozyAxChfSBg4xIPqmJnd06lC6RtdmlapODmKomDFS8s4JV5WbPEf50eQpEIhytf7tBHTLN_R903QTkvPV_qyiywaxeAU-meOOXUJ6x_yu06QtB439S4ZWypDTURez7sREdEvPZNydjxvLmDVVcGMZZwaZeR',
    'sec-ch-ua': '"Microsoft Edge";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-site',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,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+LGSmFGfpn4bzQyBpS+DQULFSkzApoJ94S8dbFzpkc4BETzSz1JDbL/LSizdYU4gcFanWA8pzIybkQznS72SmFpDSi4pZU4gzfGSmF4FSbzrSQc9l+aL+3N7kn4BkQz/z7anSO8/bl4epP/LYLanTzJLDA8npr+ApSyMm7yFSennTQzpmmJfkH8rS9qBG6p7rEagYd8nzQ4d+rpdz6anS98pzn4FEQy7mza/+N8nkn4bmQ2BS0G7pFLFDA/fpLqr4E2SmFJsTn4BpQcFbSySmF/FSb+9pDJrz9anS68pSV8nphpd41aASd8nkM4rRYng8APM8FprSe+gPlpAFRHjIj2eDjwjFlPAW9w/W9PAGENsQhP/Zjw0rh+7F=',
    'x-t': '1732334973325',
    'x-xray-traceid': 'c9ab9981821dc2011324a14be7ffeeaf',
}

response = requests.get(
    'https://edith.xiaohongshu.com/api/sns/web/v2/comment/page?note_id=6738aca0000000001b02c2da&cursor=&top_comment_id=&image_formats=jpg,webp,avif&xsec_token=AB1FKDaNemdQyQYL_EMsvS_JZ5Sbb8YUnJ-1rJQke7oAA%3D',
    cookies=cookies,
    headers=headers,
)


# json_data = json.dumps(json_data, separators=(",", ":"))

print(response.text)